﻿
MyComponents.SaveButton = null;
MyComponents.NewButton = null;
MyComponents.EditButton = null;
MyComponents.DeleteInFormButton = null;
MyComponents.DeleteInGridButton = null;
MyComponents.ExitButton = null;

MyComponents.Save = function(formName) {

};

MyComponents.New = function(formName) {

};

MyComponents.Edit = function(formName) {

};

MyComponents.DeleteInForm = function(formName) {

};

MyComponents.DeleteInGrid = function(formName) {

};

function FormRibbonDefaultInit(s, e) {
    MyComponents.SaveButton = s.GetItemByName("btnSave");
    MyComponents.DeleteButton = s.GetItemByName("btnDelete");
    MyComponents.ExitButton = s.GetItemByName("btnExit");

    if (MyComponents.SaveButton != null && MyComponents.NewButton != 'undefined') {
        $('#' + MyComponents.SaveButton.id).click(function (s, e) {
            if (MyComponents.SaveButton.GetEnabled() == true) {
                
            }
        });
    }
}